#include "joingame.h"
#include "ui_joingame.h"

joingame::joingame(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::joingame)
{
    wait=new waiting;
    ui->setupUi(this);
    this->setWindowIcon(QPixmap(":/res/R-C.jpg"));//程序app图片
    this->setWindowTitle("加入房间");//title
    ui->lineEdit->setText("39.103.167.197");

}

joingame::~joingame()
{
    delete ui;
}

void joingame::on_pushButton_2_clicked()
{
    emit this->back();
}

void joingame::on_pushButton_clicked()
{
     this->IP=ui->lineEdit->text();
    wait->show();
     emit this->join_in();

}
